@--color-primary:       #62a303;
@--color-primary-plain: #eff6e6;

@color1: #999999;
@color2: #666666;
@color3: #333333;

.margin-top(@t: auto) {
  margin-top: @t;
}
.margin-right(@r: auto) {
  margin-right: @r;
}
.margin-bottom(@b: auto) {
  margin-bottom: @b;
}
.margin-left(@l: auto) {
  margin-left: @l;
}
.padding-top(@t: auto) {
  padding-top: @t;
}
.padding-right(@r: auto) {
  padding-right: @r;
}
.padding-bottom(@b: auto) {
  padding-bottom: @b;
}
.padding-left(@l: auto) {
  padding-left: @l;
}

body {
  margin:0;
  padding: 0;
}
* {
  font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;  
}
h1, h2, h3, h4, h5, p {
  .margin-top(@t: 0);
  .margin-bottom(@b: 15px);
}
h1, h2, h3, h4, p, span, div, template, block {
  span {
    font-size: inherit; /* 避免嵌入导致样式失效*/
  }
}
h3 {
  font-size: 18px;
}
p, span, template, block {
  font-size: 14px;
}
@keyframes fold
{
from { width: calc( 100vw - 64px ) };
to { width: calc( 100vw - 200px ) };
}
@keyframes unfold
{
from { width: calc( 100vw - 200px ) };
to { width: calc( 100vw - 64px ) };
}

@keyframes foldinner
{
from { width: calc( 100vw - 200px ) };
to { width: calc( 100vw - 94px ) };
}
@keyframes unfoldinner
{
from { width: calc( 100vw - 94px ) };
to { width: calc( 100vw - 200px ) };
}


/* 设置滚动条的样式 */
/*滚动条整体部分,必须要设置*/
::-webkit-scrollbar{
    width: 8px;
    height: 8px;
    background-color: #333;
}
/*滚动条的轨道*/
::-webkit-scrollbar-track{
    box-shadow: inset 0 0 4px rgba(0,0,0,.1);
    background-color: #fff;
}
/*滚动条的滑块按钮*/
::-webkit-scrollbar-thumb{
    border-radius: 8px;
    background-color: #9c9c9c;
}

/**
 * 修改element的基本样式
 */
.navigation-bar.el-menu--collapse { /* 为兼容导航折叠后文字依旧存在的问题*/
  .el-submenu__title {
    color: #001324!important;
    overflow-x: hidden; 
    i {
      color: #909399!important;
    }
  }
  .el-submenu.is-active .el-submenu__title{
    background: #0E82EB!important;
    color: #0E82EB!important;
    i {
      color: #fff!important;
    }
  }
}
.navigation-bar>.el-submenu.is-active, .navigation-bar>.el-submenu.is-active > .el-submenu__title:first-child {
  background: #0E82EB!important;
  i {
    color: #fff!important;
  }
}
.navigation-bar {

  width: 200px;
  height: 100%;
  &.el-menu--collapse {
    width: 64px;
  }
  .el-menu-item.is-active.single { // 单个节点
    background-color: #0E82EB!important;
    color: #fff;
  }
  .el-submenu .el-menu .el-menu-item {
    padding-left: 48px!important;
  }
}
.el-select-dropdown__wrap.el-scrollbar__wrap {
  max-height: 260px;
}
.el-button--small {
  padding-top: 8px;
  padding-bottom: 8px;
}
/* 加高表单验证的错误信息显示*/
.el-form-item--small.el-form-item {
  margin-bottom: 20px;
}
.el-form-item--small .el-form-item__error {
  padding-top: 5px;
}

/**
 * 左侧导航
 */
.left-nav .logo{
  display: flex;
  overflow: hidden; 
  align-items: center;
  padding: 0!important;
  color: #fff;
  &:hover {
    cursor: default;
  }
  span {
    display: inline-block;
    font-weight: bold;
    min-width: 100%;
    overflow: hidden; 
    color: #fff;
  }
}
.el-table tr th {
  background: #FAFAFA;
  color: #333333;
}
/* textarea的默认字体样式 */
textarea.el-textarea__inner {
  font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
}

/*透明弹窗*/
.transparent-dialog {
  .el-dialog__close.el-icon.el-icon-close {
    font-size: 40px;
    color: #fff;
  }
  .el-dialog__header {
    border-bottom: 0px solid transparent!important;
  }
  .el-dialog {
    .el-dialog__headerbtn {
      margin-top: -20px;
      margin-right: -10px
    }
    box-shadow: none;
    background: transparent;
    .el-image {
      width: 100%;
      border: 2px solid #fff;
    }
  }
}

// .step-tab .el-tabs__item:before {
//   display: block;
//   position: absolute;
//   height: 10px;
//   width: 10px;
//   left: -6px;
//   top: 13px;
//   content: "";
//   border-top: 1px solid #E4E7ED;
//   border-right: 1px solid #E4E7ED;
//   background: #fff;
//   -webkit-transform: rotate(45deg);
//   transform: rotate(45deg);
// }
// .step-tab .el-tabs__item:first-child:before {
//   display: none;
// }
// .el-tree .el-tree-node__content * {
//   font-size: 14px;
// }
// .el-button {
//   border-radius: 2px;
// }
// .el-button.el-button--primary.gradient {
//   border: none;
//   background: linear-gradient(to right, #0E82EB99, #0E82EBFF);
//   &.is-disabled {
//     background: #a0cfff!important;
//   }
// }

/**
 * 通用 form 的样式修改
 */
.el-tag {
  margin-right: 15px;
}
.el-checkbox__label, .el-radio__label{
  font-weight: 500!important;
}
/**
 * nav-layout 的样式
 */
.main-container {
  background: #F5F5F5;
  .no-fold-img {
    height: 55px;
    width: 42px;
    padding: 0 11px 0 11px;
    background: #001324;
  }
  .body-top {
    height: 55px;
    overflow-y: hidden;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    .fold-button {
      margin: 15px 10px;
      font-size: 26px;
      color: #333333;
      &:hover {
        cursor: pointer;
      }
    }
    .button-in-head.el-button {
      padding: 4px!important;
      font-size: 26px!important;
      font-weight: bold;
      color: #666;
    }
    .user-area {
      float: right;
      padding: 10px 16px;
      vertical-align: middle;
      & * {
        display: inline-block;
        vertical-align: middle;
      }
      .user-name {
        margin: 0 15px;
      }
    }
  }
  .body {
    display: flex;
    justify-content: space-between;
    height: calc( 100vh );
    .right-area {
      width: 100%;
    }
    .router-container {
      display: inline-block;
      width: calc( 100vw - 200px );
      padding: 15px; 
      max-height: calc( 100vh - 60px );
      overflow-y: auto;
      overflow-x: hidden;
      box-sizing: border-box;
      width: calc(100vw - 200px);
      animation: fold 0.25s ease-in-out;

      &.has-folded {
        width: calc( 100vw - 64px );
        animation: unfold 0.25s ease-in-out;
      }
      & > div {
        width: 100%!important;
      }
      // &.has-folded .el-container {
      //   animation: unfoldinner 1s ease-in-out;
      // }
    }
  }
}

/* 页面主体 container 的样式 (模块式)*/
.has-folded .el-container {
  overflow-x: hidden;
  min-width: calc(100vw - 94px);
  max-width: calc(100vw - 94px)
}
.el-container {
  overflow-x: hidden;
  min-width: calc(100vw - 230px);
  max-width: calc(100vw - 230px);
  &.fixed-header-holder {
    padding-top: 85px;
  }
}
.fixed-page-header {
  position: fixed;
  top: 17px;
  margin-left: 20px;
  z-index: 999;
}
.el-header {
  height: 25px!important;
  line-height: 18px;
  padding-left: 0;
  padding-right: 0;
  .el-page-header__content {
    font-weight: bold;
  }
  h3 {
    margin: 0;
    line-height: 24px;
  }
}

/* 顶部的计数器 */
.col-count {
  display: flex;
  padding: 0!important;
  background: #fff;
  .el-image {
    width: 100px;
  }
  .right-info {
    width: calc( 100% - 100px );
  }
  .count-number {
    margin-top: 15px;
    margin-bottom: 15px;
    font: 30px bold;
    text-align: center;
  }
  .count-title {
    margin-top: 0;
    font: 16px bold;
    text-align: center;
  }
}

.el-main {
  padding: 0;
  overflow: hidden;
}
/* 基本的包裹元素 */
.block-wrap {
  padding: 15px;
  margin-top: 15px;
  & >*:first-child { /* 消除block-wrap中 最后一个元素的上边距 放置外内边距叠加*/
    margin-top: 0!important;
  }
  & >*:last-child { /* 消除block-wrap中 最后一个元素的下边距 放置外内边距叠加*/
    margin-bottom: 0!important;
  }
  background: #fff;
  .block-label {
    margin-top: 0;
    padding-left: 10px;
    border-left: 4px solid #0E82EB;
  }
  /*图片预览(栅格)的调整*/
  .detail-form .el-form-item {
    margin-top: 0;
    margin-bottom: 8px; // 展示类的表单 , 不需要验证的预留空间
  }
  .form-label {
    margin-top: 0;
    margin-bottom: 0;
    height: 32px;
    line-height: 32px;
    position: relative;
    font-size: 14px;
    font-weight: normal;
    color: @color2;
  }
}
/* 图片预览相关样式调整 */
.images-preview {
  & .el-col {
    height: 20vh;
    padding: 7.5px;
    .el-image {
      height: 100%;
      width: 100%;
      .el-icon-circle-close {
        color: #fff;
      }
    }
  }
}
/* 附带信息的卡片列表 */
.info-card-row {
  .el-card {
    border: none;
    border-radius: 0;
    & .el-card__body{
      display: flex;
      justify-content: flex-start;
      min-height: 150px;
      padding: 15px;
      background: #f5f5f5;
      .el-image {
        width: 100px;
      }
      .card-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0 15px;
      }
    }
  }
}
/* 信息浮于图片之上的卡片列表*/
.image-card-row {
  .el-col {
    padding-top: 7.5px;
    padding-bottom: 7.5px;
  }
  .el-card__body {
    position: relative;
    padding: 0;
    height: 160px;
    border-radius: 0;
    .el-image {
      height: 100%;
    }
    .hover-wrap {
      position: absolute;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      top: 0;
      width: calc( 100% - 30px );
      height: calc( 100% - 30px );
      padding: 15px;
      background: #58585882;
      text-align: center;
      * {
        color: #fff;
      }
      .top {
        text-align: right;
      }
      h4 {
        max-height: 65px;
        overflow: hidden;
      }
      .bottom {
        text-align: left;
        margin-bottom: 0;
      }
    }
    .brief { /* 简要信息 */
      position: absolute;
      width: calc( 100% - 30px );
      padding: 7.5px 15px; 
      margin-top: 130px;
      bottom: 0;
      background: #313131cc;
      p {
        margin-bottom: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #fff;
      }
    }
  }
}
/* 天气模块的样式 */
.weather-block {
  min-height: 200px;
  & >p:last-child { /* 消除weather-block中 最后一个元素的下边距 放置外内边距叠加*/
    margin-bottom: 0!important;
  }
  .image-now {
    width: 100%;
  }
}
.el-footer {
  display: flex;
  align-items: center;
  background: #fff;
}


/* ----------------------- 快捷类 样式 -----------------------*/
.fill-width {
  width: 100%!important;
}
.fr {
  float: right;
}
.no-data-text {
  display: block;
  margin: 5px 0;
  color: #909399;
  text-align: center;
}
.display-block {
  display: block;
}
.align-left-through *{ //穿透
  text-align: left!important;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}
.text-underline {
  text-decoration: underline;
}

.margin-t-0 {
  .margin-top(@t: 0);
}
.margin-r-0 {
  .margin-right(@r: 0);
}
.margin-b-0 {
  .margin-bottom(@b: 0);
}
.margin-l-0 {
  .margin-left(@l: 0);
}

.margin-t-15 {
  .margin-top(@t: 15px);
}
.margin-r-15 {
  .margin-right(@r: 15px);
}
.margin-b-15 {
  .margin-bottom(@b: 15px);
}
.margin-l-15 {
  .margin-left(@l: 15px);
}

.margin-tb-0 {
  .margin-top(@t: 0);
  .margin-bottom(@b: 0);
}
.margin-tb-15 {
  .margin-top(@t: 15px);
  .margin-bottom(@b: 15px);
}
.margin-lr-15 {
  .margin-left(@l: 15px);
  .margin-right(@r: 15px);
}
.margin-15 {
  .margin-top(@t: 15px);
  .margin-right(@r: 15px);
  .margin-bottom(@b: 15px);
  .margin-left(@l: 15px);
}
.margin-0 {
  .margin-top(@t: 0);
  .margin-right(@r: 0);
  .margin-bottom(@b: 0);
  .margin-left(@l: 0);
}

.padding-t-0 {
  .padding-top(@t: 0);
}
.padding-r-0 {
  .padding-right(@r: 0);
}
.padding-b-0 {
  .padding-bottom(@b: 0);
}
.padding-l-0 {
  .padding-left(@l: 0);
}

.padding-t-15 {
  .padding-top(@t: 15px);
}
.padding-r-15 {
  .padding-right(@r: 15px);
}
.padding-b-15 {
  .padding-bottom(@b: 15px);
}
.padding-l-15 {
  .padding-left(@l: 15px);
}

.padding-tb-0 {
  .padding-top(@t: 0);
  .padding-bottom(@b: 0);
}
.padding-tb-15 {
  .padding-top(@t: 15px);
  .padding-bottom(@b: 15px);
}
.padding-lr-15 {
  .padding-left(@l: 15px);
  .padding-right(@r: 15px);
}
.padding-15 {
  .padding-top(@t: 15px);
  .padding-right(@r: 15px);
  .padding-bottom(@b: 15px);
  .padding-left(@l: 15px);
}
.padding-0 {
  .padding-top(@t: 0);
  .padding-right(@r: 0);
  .padding-bottom(@b: 0);
  .padding-left(@l: 0);
}
.text-32 {
  font-size: 32px;
  line-height: 1.3;
}
.text-24 {
  font-size: 24px;
  line-height: 1.2;
}
.text-18 {
  font-size: 18px;
  line-height: 1.2;
}
.text-16 {
  font-size: 16px;
}
.text-14 {
  font-size: 14px;
}
.text-12 {
  font-size: 12px;
}



.el-tree .text-button-wrap {
  width: 100%!important;
  height: 26px;
  line-height: 26px;
  .el-button {
    padding: 0;
  }
}

/* ----------------------------- 路由切换动画相关 ---------------------------*/
.has-folded .default-container {
  overflow-x: hidden;
  min-width: calc(100vw - 124px);
  max-width: calc(100vw - 124px)
}
.default-container {
  overflow-x: hidden;
  min-width: calc(100vw - 260px);
  max-width: calc(100vw - 260px)
}
.slide-down-enter-active,
.slide-down-leave-active,
.slide-up-enter-active,
.slide-up-leave-active,
.fade-enter,
.fade-leave-active,
.scale-enter,
.scale-leave-active {
  will-change: transform;
  transition: all 0.25s ease-in-out;
  position: absolute;
}
.fade-enter {
  opacity: 0;
  transform: scale(0.1);
}
.fade-leave-active {
  opacity: 0;
  transform: scale(1);
}
.slide-down-enter {
  opacity: 0;
  transform: translate3d(0, -3%, 0);
}
.slide-down-leave-active {
  opacity: 0;
  transform: translate3d(0, 3%, 0);
}
.slide-up-enter {
  opacity: 0;
  width: calc(100%);
  transform: translate3d(0, 3%, 0);
}
.slide-up-leave-active {
  opacity: 0;
  width: calc(100%);
  transform: translate3d(0, -3%, 0);
}
.scale-enter {
  opacity: 0;
  transform: scale(1.1, 1.1);
}
.scale-leave-active {
  opacity: 0;
  transform: scale(1.1, 1.1);
}

/* -----------------------------文档美化样式 ---------------------------*/

.default-container {
  padding: 15px;
  background: #fff;
}
code { // 单行内代码
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: Menlo,Monaco,Consolas,Courier,monospace;
}
pre { // 块级代码
  display: block;
  overflow-x: hidden;
  line-height: 1.8;
  font-family: Menlo,Monaco,Consolas,Courier,monospace;
  font-size: 12px;
  padding: 15px 20px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 4px;
  -webkit-font-smoothing: auto;
}
.tip-area {
  padding: 8px 16px;
  background-color: #ecf8ff;
  border-radius: 4px;
  border-left: 5px solid #50bfff;
  margin: 15px 0;
  p {
    margin: 7.5px 0!important;
  }
}
.warning-area {
  padding: 8px 16px;
  background-color: #fdf6ec;
  border-radius: 4px;
  border-left: 5px solid #E6A23C;
  margin: 15px 0;
  p {
    margin: 7.5px 0!important;
  }
}
.h1 {
  font: 32px bold;
}
.h2 {
  font: 24px bold;
}
.h3 {
  font: 18px bold;
}
.h4 {
  font: 16px bold;
}
.p {
  font: 14px normal;
}
.small {
  font: 12px normal;
  color: #999999;
}